//
//  NEBaseTeamSearchImageCell.swift
//  NETeamUIKit
//
//  Created by Laura on 2024/7/30.
//

import UIKit

@objcMembers
open class NEBaseTeamSearchImageCell: UICollectionViewCell {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    public lazy var imageView: UIImageView = {
        let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: (UIScreen.main.bounds.size.width - 33) / 4, height: (UIScreen.main.bounds.size.width - 33) / 4))
        imageView.translatesAutoresizingMaskIntoConstraints = false
        imageView.accessibilityIdentifier = "id.image"
        imageView.contentMode = .scaleAspectFill
        imageView.layer.masksToBounds = true
        return imageView
    }()
    
    public lazy var collectionStateView: VideoStateView = {
      let state = VideoStateView()
      state.translatesAutoresizingMaskIntoConstraints = false
      state.backgroundColor = .clear
      state.state = .VideoPlay
      return state
    }()
    
    open func setupUI() {
        addSubview(imageView)
        addSubview(collectionStateView)
    }
    
    required public init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
